//对象的解构
const obj = {
  a: 1,
  b: 2,
  c: 3
}

const { a } = obj;
console.log(a);

//重命名
const b = 123;
const { b: b1 } = obj;
console.log(b1)

//简化代码
const { log } = console
log(1)
log(2)
log(3)